/*
 * Copyright (c) 2013 WDCY Information Technology Co. Ltd
 * www.wdcy.cc
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * WDCY Information Technology Co. Ltd ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with WDCY Information Technology Co. Ltd.
 */
package com.andaily.zhishifenzi.domain.player;

import com.andaily.zhishifenzi.domain.shared.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Shengzhao Li
 */

public interface PlayerRepository extends Repository {

    Player findByGuid(String guid);

    void savePlayer(Player player);

    void updatePlayer(Player player);

    List<Player> findListPlayers(Map<String, Object> map);

    Player findByFullName(String fullName);

    void archivePlayerUser(@Param("player") Player player, @Param("archived") boolean archived);

    List<Player> findAvailablePlayers();
}